﻿<Window x:Class="Scarecrow_Network_Manager.oldProfileWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:properties="clr-namespace:Scarecrow_Network_Manager.Properties"
        Title="ProfileWindow" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="492" Width="409" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="127*" />
            <ColumnDefinition Width="35" />
            <ColumnDefinition Width="78" />
            <ColumnDefinition Width="35" />
            <ColumnDefinition Width="113*" />
        </Grid.ColumnDefinitions>
        <Image Source="Images\System\background.png" Stretch="Fill" Grid.ColumnSpan="5" />
        <Label Content="{x:Static properties:Resources.Profile}" Height="28" HorizontalAlignment="Left" Margin="76,22,0,0" Name="lblProfile" VerticalAlignment="Top" Foreground="White" />
        <TextBox Height="23" Margin="2,24,2,0" Name="txtProfile" VerticalAlignment="Top" TextChanged="txtProfile_TextChanged" Grid.Column="1" Grid.ColumnSpan="3" />
        <Label Content="{x:Static properties:Resources.Icon}" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="82,98,0,0" Name="lblIcon" VerticalAlignment="Top" />
        <Button Content="←" Height="75" Margin="2,75,3,0" Name="cmdPrevIcon" VerticalAlignment="Top" Click="cmdPrevIcon_Click" Grid.Column="1" />
        <Button Content="→" Height="75" Margin="3,73,2,0" Name="cmdNextIcon" VerticalAlignment="Top" Click="cmdNextIcon_Click" Grid.Column="3" />
        <DataGrid Height="200" Margin="35,156,24,0" Name="adaptersGrid" VerticalAlignment="Top" ItemsSource="{Binding}" Background="White" CanUserReorderColumns="False" IsReadOnly="True" Grid.ColumnSpan="5" AutoGenerateColumns="False" SelectionMode="Single" MouseDoubleClick="adaptersGrid_MouseDoubleClick">
            <DataGrid.Columns>
                <DataGridTextColumn Header="{x:Static properties:Resources.Adapter}" Binding="{Binding Path=NetworkAdapter}"/>
                <DataGridTextColumn Header="{x:Static properties:Resources.Enable}" Binding="{Binding Path=Enabled}"/>
                <DataGridTextColumn Header="{x:Static properties:Resources.DHCPIP}" Binding="{Binding Path=IsIPDhcp}"/>
                <DataGridTextColumn Header="{x:Static properties:Resources.IPAddress}" Binding="{Binding Path=IPAddress}"/>
                <DataGridTextColumn Header="{x:Static properties:Resources.SubnetMask}" Binding="{Binding Path=SubnetMask}"/>
                <DataGridTextColumn Header="{x:Static properties:Resources.Gateway}" Binding="{Binding Path=Gateway}"/>
                <DataGridTextColumn Header="{x:Static properties:Resources.DHCPDNS}" Binding="{Binding Path=IsDNSDhcp}"/>
                <DataGridTextColumn Header="{x:Static properties:Resources.DNS1}" Binding="{Binding Path=DNS1}"/>
                <DataGridTextColumn Header="{x:Static properties:Resources.DNS2}" Binding="{Binding Path=DNS2}"/>
            </DataGrid.Columns>
        </DataGrid>
        <Button Margin="0,362,21,0" Name="cmdEditAdapter" HorizontalAlignment="Right" Width="35" Background="Black" Height="35" VerticalAlignment="Top" Grid.Column="4" Click="cmdEditAdapter_Click">
            <Image Source="Images\System\edit.png" Stretch="Fill" />
        </Button>
        <Button Content="{x:Static properties:Resources.Save}" Height="23" HorizontalAlignment="Right" Margin="0,418,21,0" Name="cmdSave" VerticalAlignment="Top" Width="75" Click="cmdSave_Click" Grid.Column="4" />
        <Button Content="{x:Static properties:Resources.Cancel}" Height="23" HorizontalAlignment="Left" Margin="35,418,0,0" Name="cmdClose" VerticalAlignment="Top" Width="75" Click="cmdClose_Click" />
        <Image Margin="2,75,3,0" Name="pcbIcon" Stretch="Uniform" Grid.Column="2" Height="75" VerticalAlignment="Top" />
    </Grid>
</Window>
